package com.hailiao.devicebasicsdkdemo.fragment

import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.navigation.NavController
import androidx.navigation.fragment.findNavController
import com.hailiao.devicebasicsdkdemo.MainActivity

/**
 * 基础Fragment
 *
 * Author: D10NG
 * Time: 11/30/20 2:48 PM
 */
open class BaseFragment: Fragment() {

    lateinit var navController: NavController
    lateinit var act: MainActivity

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
        navController = findNavController()
        act = requireActivity() as MainActivity
    }
}